import {
	createRouter,
	createWebHashHistory
} from 'vue-router'

import Home from '../views/home.vue'
import HomePage from '../views/homePage.vue'
import ClassInfo from '../views/ClassInfo.vue'
import JobInfo from '../views/JobInfo.vue'
// import Knowledge from '../views/ClassInfo.vue'
// import Personal from '../views/JobInfo.vue'
import Knowledge from '../views/knowledge.vue'
import Personal from '../views/personal.vue'
import Recruitment from '../views/recruitment.vue'
import Interaction from '../views/interaction.vue'
import Login from '../views/login.vue'
import Register from '../views/register.vue'
import StudyContent from '../views/student/学习内容.vue'
import StudyRequire from '../views/student/学习要求.vue'
import KeyPoint from '../views/student/重难点.vue'
import ExperProject from '../views/student/实验项目.vue'
import RecomTextbook from '../views/student/推荐教材.vue'
import KnowIntrduce from '../views/student/知识点简介.vue'
import CompamyInfo from '../views/CompamyInfo.vue'
//师生互动板块
import RequirementsList from '../views/teacher&student/RequirementsList.vue'
import TeacherReplies from '../views/teacher&student/TeacherReplies.vue'
import StudentQusetion from '../views/StudentQusetion.vue'
const router = createRouter({
	history: createWebHashHistory(process.env.BASE_URL),
	routes: [{
			path: '/',
			redirect: '/home'
		},
		{
			path: '/login',
			name: 'login',
			component: Login
		},
		{
			path: '/jobinfo',
			name: 'jobinfo',
			component: JobInfo
		},
		{
			path: '/classinfo',
			name: 'classinfo',
			component: ClassInfo
		},
		{
			path: '/compamyinfo',
			name: 'compamyinfo',
			component: CompamyInfo
		},
		{
			path: '/register',
			name: 'register',
			component: Register
		},
		{
			path: '/studentquestion',
			name: 'studentquestion',
			component: StudentQusetion
		},
		{
			path: '/requirementslist',
			name: 'requirementslist',
			component: RequirementsList
		},
		{
			path: '/teacherreplies',
			name: 'teacherreplies',
			component: TeacherReplies
		},
		{
			path: '/home',
			name: 'home',
			component: Home,
			redirect: '/homePage',
			children: [{
					path: '/homePage',
					name: 'homePage',
					component: HomePage
				},
				{
					path: '/knowledge',
					name: 'knowledge',
					component: Knowledge,
					children: [{
							path: 'studyContent',
							name: 'studyContent',
							component: StudyContent
						},
						{
							path: 'studyRequire',
							name: 'studyRequire',
							component: StudyRequire
						},
						{
							path: 'keyPoint',
							name: 'keyPoint',
							component: KeyPoint
						},{
							path: 'experProject',
							name: 'experProject',
							component: ExperProject
						},
						{
							path: 'recomTextbook',
							name: 'recomTextbook',
							component: RecomTextbook
						},
					]
				},
				{
					path: '/personal',
					name: 'personal',
					component: Personal,
					children:[{
						path:'/knowintrduce',
						name:'KnowIntrduce',
						component:KnowIntrduce,
					}]
				},
				{
					path: '/recruitment',
					name: 'recruitment',
					component: Recruitment
				},
				{
					path: '/interaction',
					name: 'interaction',
					component: Interaction
				}
			]
		}
	]
})

export default router
